package com.naiterui.ehp.bp.support.security;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 支付系统登陆拦截器
 *
 * @author 王泽浩
 * @since 1.0.0
 */
public class PaymentLoginInterceptor extends AbstractLoginInterceptor {

    private static final Logger LOGGER = LoggerFactory.getLogger(PaymentLoginInterceptor.class);

    @Override
    protected void printAccessLog(HttpServletRequest request) {
    }

    @Override
    protected void settingNosignUri(List<String> nosignUri) {
        // swagger
        nosignUri.add("/swagger-ui.html");
        nosignUri.add("/webjars/**");
        nosignUri.add("/swagger-resources/**");
        nosignUri.add("/v2/api-docs");

        nosignUri.add("/pay/callback");
        nosignUri.add("/pay/wftCallBack");
        nosignUri.add("/payDoctor/notifyPayResult");
        nosignUri.add("/callback/**");

        nosignUri.add("/channel/**");
        nosignUri.add("/actuator/**");
    }
}
